"""用于展示固定格式的问题 id的简单标签"""

from django import template

register = template.Library()


@register.simple_tag
def string_just(num):
    if num < 100:
        num = str(num).rjust(3, '0')
    return "#%s" % num  # 比如 #003，#025
